package com.kksoft.readcm.a;

import android.os.Handler;
import com.kksoft.readcm.activity.App;
import com.kksoft.readcm.b.e;
import com.kksoft.readcm.c.d;
import com.kksoft.readcm.objects.ai;
import com.kksoft.readcm.objects.GlobalVar;
import com.kksoft.readcm.objects.j;
import com.kksoft.readcm.objects.v;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.http.impl.client.DefaultHttpClient;

public final class k extends AppObservable
{
  private ConcurrentHashMap k;
  private ConcurrentHashMap l;
  private ai m;

  public k()
  {
    ConcurrentHashMap localConcurrentHashMap1 = new ConcurrentHashMap();
    this.k = localConcurrentHashMap1;
    ConcurrentHashMap localConcurrentHashMap2 = new ConcurrentHashMap();
    this.l = localConcurrentHashMap2;
    Handler localHandler = App.s();
    ai localai = new ai(localHandler, 5000L);
    this.m = localai;
  }

  public final e a(j paramj, boolean paramBoolean, String paramString, d paramd)
  {
//    if (paramj == null)
//    {
//      locale = null;
//      return locale;
//    }
    ConcurrentHashMap localConcurrentHashMap1 = this.k;
    String str1 = paramj.d();
    DefaultHttpClient localDefaultHttpClient;
    if ((localConcurrentHashMap1.putIfAbsent(str1, paramj) == null) && ((paramBoolean) || (!paramj.g())))
      localDefaultHttpClient = this.j.defaultHttpClient;
//    for (e locale = new e(paramd, paramj, localDefaultHttpClient); ; locale = null)
//    {
//      ConcurrentHashMap localConcurrentHashMap2 = this.l;
//      String str2 = String.valueOf(paramString);
//      StringBuilder localStringBuilder = new StringBuilder(str2);
//      String str3 = paramj.e();
//      String str4 = str3;
//      String str5 = paramj.e();
//      v localv = new v(str5, paramString);
//      Object localObject = localConcurrentHashMap2.putIfAbsent(str4, localv);
//      break;
//    }
	return null;
  }

  public final void a()
  {
    this.k.clear();
  }

  public final void a(boolean paramBoolean)
  {
    ai localai = this.m;
    aq localaq = new aq(this, paramBoolean);
    localai.a(localaq);
  }

  public final boolean a(j paramj)
  {
    ConcurrentHashMap localConcurrentHashMap = this.k;
    String str = paramj.d();
//    this = (j)localConcurrentHashMap.get(str);
//    if (this != null)
//      h();
//    if (this != null);
//    for (int i = 1; ; i = 0)
      return false;
  }

  public final void b(j paramj)
  {
//    ConcurrentHashMap localConcurrentHashMap = this.k;
//    String str = paramj.d();
//    j localj = (j)localConcurrentHashMap.remove(str);
//    Iterator localIterator;
//    if ((localj != null) && (localj.i() != null))
//      localIterator = localj.i().iterator();
//    while (true)
//    {
//      if (!localIterator.hasNext())
//        return;
//      Integer localInteger = (Integer)localIterator.next();
//      al localal = this.h;
//      int i = localInteger.intValue();
////      h localh = new h(i, null, 0, localj);
////      localal.a(localh);
//    }
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.a.k
 * JD-Core Version:    0.6.0
 */